package com.lagou.sqlSession;

import java.util.List;

public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementid, Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementid, Object... params) throws Exception;

    //执行新增、修改、删除
    public <T> T executor (String statementid, Object... params) throws Exception;

    //getMapper方式
    public <T> T getMappper(Class<?> mapperClass) throws Exception;

}
